//
//  ReNewAlbumCollectionViewCell.m
//  MusicPlayer
//
//  Created by dlios on 15-5-25.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ReNewAlbumCollectionViewCell.h"


@implementation ReNewAlbumCollectionViewCell
- (void)dealloc
{
    [_titleLabel release];
    [_albumImageView release];
    [super dealloc];
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

#pragma mark - 自定义collectionView的item
- (void)createView
{
    self.albumImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
    self.albumImageView.userInteractionEnabled = YES;
    // 设置albumImageView的圆角
    self.albumImageView.clipsToBounds = YES;
    self.albumImageView.layer.cornerRadius = self.frame.size.width / 375 * 15;
    [self addSubview:self.albumImageView];
    
    [self.albumImageView release];
}
@end
